package com.czc.cca.ddl;

import org.zoomdev.zoom.dao.ddl.*;
import org.zoomdev.zoom.dao.driver.mysql.MysqlDriver;

@_DDL_Table(name = "pingan_withdraw", simpleName = "", engine = MysqlDriver.InnoDB, comment = "平安分账表")
public class _DDL_PinganWithdraw {

    @_DDL_Primary()
    @_DDL_Column(name = "id", type = SqlType.INT_UNSIGNED, nullable = false, autoIncrement = true, comment = "id")
    private Long id;

    @_DDL_Column(name = "rp_id", type = SqlType.BIGINT_UNSIGNED, comment = "")
    private java.math.BigInteger rpId;

    @_DDL_Index(name = "IDX_pingan_withdraw_date")
    @_DDL_Column(name = "date", type = SqlType.INT_UNSIGNED, comment = "日期")
    private Long date;

    @_DDL_Column(name = "type", type = SqlType.TINYINT_UNSIGNED, comment = "类型 0:商户 1:平台 2:渠道商")
    private Integer type;

    @_DDL_Column(name = "ord_id", type = SqlType.VARCHAR, size = 20, comment = "订单id")
    private String ordId;

    @_DDL_Column(name = "err_code", type = SqlType.VARCHAR, size = 32, comment = "错误")
    private String errCode;

    @_DDL_Column(name = "err_msg", type = SqlType.VARCHAR, size = 300, comment = "错误说明")
    private String errMsg;

    @_DDL_Column(name = "state", type = SqlType.TINYINT_UNSIGNED, comment = "状态 0:未处理 1:成功 2:失败")
    private Integer state;

    @_DDL_Column(name = "ch_id", type = SqlType.VARCHAR, size = 32, comment = "平安id")
    private String chId;

    @_DDL_Column(name = "cr_time", type = SqlType.TIMESTAMP, defaultFunction = MysqlDriver.CURRENT_TIMESTAMP, comment = "创建时间")
    private java.sql.Timestamp crTime;

}
